package shark.picture.service;

import cn.hutool.json.JSONObject;
import org.springframework.web.multipart.MultipartFile;
import shark.picture.common.BaseResponse;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author jianxin.wei
 * @description
 * @date 2025/3/21 10:39
 */
public interface UtilsService {
    void base64ToImage(JSONObject jsonObject, HttpServletResponse response) throws IOException;

    BaseResponse<JSONObject> uploadTemplate(MultipartFile file);

    BaseResponse<?> fillTemplate(JSONObject param);

    BaseResponse<?> imageToBase64(MultipartFile file);
}
